<?php

/**
 * {0}
 *
 * @author longpt
 * @version
 */

require_once "BaseModel.php";
require_once 'DBUtils.php';


class Profile extends BaseModel
{
	/**
	 * The default table name
	 */
	protected $_name = 'profile';
	protected $_primary = array('id', 'key');
	protected $user_id = null;

	public function createProfile($id, $arr)	{
		foreach ($arr as $v) {
			$data = array();
			$data['id'] = $id;
			$data['key'] = $v['id'];
			$data['value'] = $v['content'];
			$this->insertRowWithData($data);
		}
	}
}